package com.tyk.bookstore.back.member.model.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tyk.bookstore.back.common.core.model.type.Gender;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Schema(name = "MemberDetail", description = "用户详情")
@TableName("member_detail")
@Data
public class MemberDetailDo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1;

    @Schema(description = "会员ID")
    @TableId("member_id")
    private Long memberId;

    @Schema(description = "昵称")
    @TableField("nickname")
    private String nickname;

    @Schema(description = "头像路径")
    @TableField("avatar")
    private String avatar;

    @Schema(description = "性别[0男，1女，2未知]")
    @TableField("gender")
    private Gender gender;

    @Schema(description = "生日")
    @TableField("birthday")
    private LocalDateTime birthday;

    @Schema(description = "身份证号")
    @TableField("id_card")
    private String idCard;

}
